package io.renren.common.exception;

import io.renren.common.constant.WareConstant;

// 异常状态码类
public enum  BizCodeEnume {

    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    VAILD_EXCEPTION(10001,"参数格式化校验异常"),
    TO_MANY_REQUEST(10002,"请求流量过大，请稍后再试"),
    SMS_CODE_EXCEPTION(10002,"验证码获取频率过高"),
    PRODUCT_UP_EXCETPION(10003,"商品上架异常"),
    PHONE_EXIST_EXCEPTION(10004,"手机号已存在"),
    USER_EXIST_EXCEPTION(10005,"用户名已经存在"),
    NO_STOCK_EXCEPTION(21000,"商品库存不足"),
    LOGINACCT_PASSWORD_EXCEPTION(15003,"账号或密码错误"),
    TOO_MAMY_REQUEST(31000,"请求过多");


    private int code;
    private String msg;

    BizCodeEnume(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
